public class DemoTry
{
	public static void main (String parametros[])
	{
		int a=5,b=0,c;
	 	try
		{  	
	   		c=a/b;
     	}
       	catch(Exception e)
		{
	   		System.out.println("Error al dividir");
	   		c=0;
       	}
     	System.out.println("c vale "+c);  
	}	
}	